package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ReferentialAction {

    private int beginIndex;
    private int endIndex;
    private boolean cascade;
    private boolean setNull;
    private boolean setDefault;
    private boolean restrict;
    private boolean noAction;

    public ReferentialAction(int beginIndex,
                             int endIndex,
                             boolean cascade,
                             boolean setNull,
                             boolean setDefault,
                             boolean restrict,
                             boolean noAction) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.cascade = cascade;
        this.setNull = setNull;
        this.setDefault = setDefault;
        this.restrict = restrict;
        this.noAction = noAction;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isCascade() {
        return cascade;
    }

    public boolean isSetNull() {
        return setNull;
    }

    public boolean isSetDefault() {
        return setDefault;
    }

    public boolean isRestrict() {
        return restrict;
    }

    public boolean isNoAction() {
        return noAction;
    }

}
